#include "loading.h"
#include "ui_loading.h"

Loading::Loading(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Loading)
{
    ui->setupUi(this);
    movie = new QMovie(":/photo/loading.gif");
    ui->label_ShowLoading->setMovie(movie);
    movie->start();
}

Loading::~Loading()
{
    movie->stop();
    delete ui;
}

void Loading::closeLoading()
{
    this->close();
}
